package com.wealth.scsj.p_app.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.wealth.scsj.p_app.R;
import com.wealth.scsj.p_app.bean.TotalOrderBean;

import java.util.List;

/**
 * 全部订单
 */

public class TotalOrderAdapter extends BaseQuickAdapter<TotalOrderBean, BaseViewHolder> {

    public TotalOrderAdapter(List data) {
        super(R.layout.item_total_layout, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, TotalOrderBean item) {

        helper.setText(R.id.start_address_tv, item.getStart());
        helper.setText(R.id.name_tv1, item.getName());
        helper.setText(R.id.end_address_tv, item.getEnd());
        helper.setText(R.id.name_tv2, item.getName2());
        helper.setText(R.id.time_tv, item.getTime());
        helper.setText(R.id.price_tv, item.getPrice());

    }
}
